import request from '@/utils/request'

// 查询出生婴儿列表
export function listNewborn(query) {
  return request({
    url: '/report/newborn/list',
    method: 'get',
    params: query
  })
}

// 查询出生婴儿详细
export function getNewborn(id) {
  return request({
    url: '/report/newborn/' + id,
    method: 'get'
  })
}

// 新增出生婴儿
export function addNewborn(data) {
  return request({
    url: '/report/newborn',
    method: 'post',
    data: data
  })
}

// 修改出生婴儿
export function updateNewborn(data) {
  return request({
    url: '/report/newborn',
    method: 'put',
    data: data
  })
}

// 删除出生婴儿
export function delNewborn(id) {
  return request({
    url: '/report/newborn/' + id,
    method: 'delete'
  })
}
